package com.Test;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2022-02-16 16:28:07
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2022-02-16     张李鑫                     1.0         1.0 Version
 */
public class Test {

    public static void main(String []args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            int loop=8;
            String console= sc.nextLine();
            while(loop<console.length()){
                loop+=8;
            }
            int ln=0;
            for(int i=0;i<loop;i++){
                ln++;
                System.out.print(i>console.length()-1?'0':console.charAt(i));
                if(ln==8){
                    System.out.println();
                    ln=0;
                }
            }

            new ConcurrentHashMap<>();
        }

    }




    public static void StrCount(String input, String target){
        String str =input.toLowerCase();
        String s = target.toLowerCase();
        int i=0;
        String console="asd";
        System.out.print(i>console.length()-1?0:console.charAt(i));
        System.out.print(str.length()-str.replaceAll(s,"").length());
    }
    /**
     * urivthvt
     * lqqerctl
     * xmjvkgvf
     * claaduwm
     * aadedpad
     * anl00000
     * batkqdhj
     * nrwtsmzi
     * dswdnenq
     * psblsszl
     * dyttytrg
     * enaizweh
     * ntqiaauf
     * ble00000
     */
    /**
     * urivthvt
     * lqqerctl
     * xmjvkgvf
     * claaduwm
     * aadedpad
     * anl
     */

}
